<%--
  Created by IntelliJ IDEA.
  User: Edward_yang
  Date: 2017/12/18 0018
  Time: 11:37
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/commons/global.jsp" %>
<!DOCTYPE html>
<head>
    <title>修改结算比例</title>
</head>

<style>
    .table td{
        text-align: center;
        height:30px;
        border:1px solid #e0e0e0;
    }
</style>
<body>
<script>
    function checkSellerAccountRatio(){
        progressLoad();
        var settlementRatio=$("#settlementRatio").val();
        var sellerId=$("#sellerId").val();
        $.ajax({
            cache: true,
            type: "POST",
            url:"${path }/seller/checkSellerAccountRatio.do",
            data:{"settlementRatio":settlementRatio,"sellerId":sellerId},
            async: false,
            error: function(request) {
                progressClose();
                $.messager.alert("删除失败", "服务器连接失败!","error");
            },
            success: function(data) {
                progressClose();
                if (data.success) {
                    $.messager.alert("系统提示", "操作成功","info",function(){
                        closeWin('modelCheckSellerAccountRatio');
                        reloadSellerDataGrid();
                    });

                }else{
                    progressClose();
                    $.messager.alert("系统提示", data.msg,"error");
                }
            }
        });
    }
</script>
<table class="table" style="align-content: center">
    <tr>
        <td>修改结算比例:</td>
        <td><input type="text" id="settlementRatio" onkeyup="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')" value="${seller.settlementRatio}" width="100px"></td>
    </tr>
</table>
<input type="hidden" value="${seller.id}" id="sellerId">
<div  data-options="region:'south',border:true" style="height: 24px; padding-top: 8px;text-align: center" >
    <a  class="easyui-linkbutton" icon="icon-save" onclick="checkSellerAccountRatio();" >保存</a>
    <a class="easyui-linkbutton" icon="icon-cancel" onclick="closeWin('modelCheckSellerAccountRatio')" >取消</a>
</div>
</body>
</html>
